import 'package:flutter_flame/worlds/game/model/SeedModel.dart';

abstract class GameEvent {
  const GameEvent();
}

// 设置为调试模式
class GameDebugMode extends GameEvent {}

// 收集金币
class CollectCoinEvent extends GameEvent {
  final double amount;

  const CollectCoinEvent(this.amount);
}

// 收集阳光
class CollectSunlightEvent extends GameEvent {
  final int sunlight;

  const CollectSunlightEvent(this.sunlight);
}

// 花费阳光
class CostSunlightEvent extends GameEvent {
  const CostSunlightEvent();
}

// 结束游戏
class GameOverEvent extends GameEvent {}

// 更新当前选中的植物及按钮
class UpdateSelectedPlant extends GameEvent {
  final SeedModel? seedModel;

  UpdateSelectedPlant({this.seedModel});
}

class ResetSelectedPlant extends GameEvent {}

// 增加僵尸轮次
class NextZombieRound extends GameEvent {}
